package com.prs.crm.domain.taskmanager;


import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;

import com.prs.crm.domain.Attachment;
import com.prs.crm.domain.BaseEntity;

@Entity
@Table(name="tm_statedispose")
public class StateDispose extends BaseEntity{

	private static final long serialVersionUID = 1L;
	@Id@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	@ManyToOne
	private TaskAllot taskAllot;
	private String feedbackPerson;
	private String content;
	private String time;
	private String seePersonName;
	private String seePersonNameId;
	private String appointPersonName;
	private String appointPersonNameId;
	private Boolean taskDutyPerson;
	private Boolean taskDoPerson;
	private Boolean taskConsultPerson;
	public String getAppointPersonName() {
		return appointPersonName;
	}
	public void setAppointPersonName(String appointPersonName) {
		this.appointPersonName = appointPersonName;
	}
	public String getAppointPersonNameId() {
		return appointPersonNameId;
	}
	public void setAppointPersonNameId(String appointPersonNameId) {
		this.appointPersonNameId = appointPersonNameId;
	}
	public Boolean getTaskDutyPerson() {
		return taskDutyPerson;
	}
	public void setTaskDutyPerson(Boolean taskDutyPerson) {
		this.taskDutyPerson = taskDutyPerson;
	}
	public Boolean getTaskDoPerson() {
		return taskDoPerson;
	}
	public void setTaskDoPerson(Boolean taskDoPerson) {
		this.taskDoPerson = taskDoPerson;
	}
	public Boolean getTaskConsultPerson() {
		return taskConsultPerson;
	}
	public void setTaskConsultPerson(Boolean taskConsultPerson) {
		this.taskConsultPerson = taskConsultPerson;
	}
	@ManyToOne(fetch=FetchType.LAZY)
	@Cascade({org.hibernate.annotations.CascadeType.ALL,org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
	private Attachment attach1; 
	public String getSeePersonName() {
		return seePersonName;
	}
	public void setSeePersonName(String seePersonName) {
		this.seePersonName = seePersonName;
	}
	public String getSeePersonNameId() {
		return seePersonNameId;
	}
	public void setSeePersonNameId(String seePersonNameId) {
		this.seePersonNameId = seePersonNameId;
	}
	public Attachment getAttach1() {
		return attach1;
	}
	public void setAttach1(Attachment attach1) {
		this.attach1 = attach1;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public TaskAllot getTaskAllot() {
		return taskAllot;
	}
	public void setTaskAllot(TaskAllot taskAllot) {
		this.taskAllot = taskAllot;
	}
	public String getFeedbackPerson() {
		return feedbackPerson;
	}
	public void setFeedbackPerson(String feedbackPerson) {
		this.feedbackPerson = feedbackPerson;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
}
